package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.KfAdmin;
import com.ytjj.qmyx.mall.model.ReturnGoods;
import com.ytjj.qmyx.mall.model.response.ReturnGoodsResponse;
import com.ytjj.qmyx.mall.model.vo.BankerAddressVo;
import com.ytjj.qmyx.mall.model.vo.ReturnGoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 *  *
 **/
public interface ReturnGoodsDao {
    ReturnGoods findByServiceNo(String serviceNo);
    ReturnGoods findByOrderInfoId(Integer orderInfoId);

    boolean countByOrderInfoId(Integer orderInfoId);

    List<ReturnGoodsResponse> findByUserId(Integer id);

    Integer selectAddressId(Integer productId);

    List<ReturnGoods> findReturnGoodsByOrderInfoId(Integer orderInfoId);

    BankerAddressVo selectByAddressId(Integer addressId);

    List<ReturnGoodsVO> selectReturnGoods(@Param("type")Integer type,@Param("userId")Integer userId);

    ReturnGoods selectByOrderInfoId(Integer ordersInfoId);

    KfAdmin findKfAdminId(String kfid);

    Integer returnGoodsSuccess(Integer id);
}
